import axios from './axios'
import { Box } from '@element-plus/icons-vue'

export const getMedicineList = () => axios.get('/medicine/list')

export const applyMedicine = (data) => axios.post('/caregiver/medicine/receive/apply', data)

export const addMedicine = (data) => axios.post('/medicine', data)
export const deleteMedicine = (id) => axios.delete(`/medicine/${id}`)


// 缺失接口补充
export const addMedicineReceiveRecord = (data) => request.post('/medicine/receive', data)
export const getMedicineReceiveRecords = (params) => request.get('/medicine/receive', { params })
export const getMedicines = (params) => request.get('/medicine/list', { params })